<!--
 * @Author: 卡卡 1071780426@qq.com
 * @Date: 2023-09-27 17:43:02
 * @LastEditors: 贺楠 1071780426@qq.com
 * @LastEditTime: 2024-10-10 13:18:39
 * @FilePath: \mould\src\components\BehaViorManage\feedbackListText\index.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <!-- 小弹框 width:500,height:0.3,top:15%  -->
  <!-- 中弹框 width:800,height:0.5,top:10% -->
  <!-- 大弹框 width:1060,height:0.76,top:5% -->

  <div class="rawMaterial" id="tableInfoBox"  style=" display: flex;
    flex-direction: column;!important">
    <FormLyout @yj_saveForm="yj_saveForm" :isSave="btnShow">
      <template v-slot:formcon>
        <div
          class="dialogBody common commonClassDialog moduleDialog"
          :style="{ height: dialogHeight }"
          style="width: 100%"
        >
          <div class="baseTable">
            <publicForm1
              ref="publicForm"
              lableWidth="95px"
              :formObj="formObj"
              :formData="formData"
              @inputFocus="selectChange"
              @selectChange="selectChange"
            >
            </publicForm1>
          </div>
          <div class="postionTable">
            <el-table :data="positionData" style="width: 100%">
              <el-table-column label="序号" type="index" width="50">
              </el-table-column>

              <el-table-column
                prop="fSendobject"
                label="存放位置"
                align="center"
              >
                <template slot-scope="scope">
                  <div class="selectobject">
                    <el-input
                      :disabled="isEdit"
            
                      v-model="scope.row.fLocationname"
                     
                    ></el-input>
                    <!-- <el-select
                      placeholder="请选择"
                      v-model="scope.row.fLocationname"
                      value-key="fId"
                      :disabled="isEdit"
                      @change="
                        function (item) {
                          return selectPostion(
                            scope.row,
                            scope.row.fLocationname,
                            scope.$index,
                            item
                          );
                        }
                      "
                    >
                      <el-option
                        v-for="(item, index) in positionObj"
                        :label="`${item.fLocationname}`"
                        :value="item"
                        :key="index"
                        :disabled="item.disabled"
                      >
                      </el-option>
                    </el-select> -->
                  </div>
                </template>
              </el-table-column>
              <el-table-column
                prop="fLocationnum"
                label="存放数量(t)"
                align="center"
              >
                <template slot-scope="scope">
                  <div class="inputminute">
                    <el-input
                      :disabled="isEdit"
                      @input="getLocationnum"
                      v-model="scope.row.fLocationnum"
                      type="number"
                    ></el-input>
                  </div>
                </template>
              </el-table-column>

              <el-table-column align="right">
                <template slot="header">
                  <div class="customTable">
                    <el-button
                      type="primary"
                      :disabled="isEdit"
                      icon="el-icon-circle-plus-outline"
                      @click="addUnqualifiedInfo"
                    ></el-button>
                  </div>
                </template>
                <template slot-scope="scope">
                  <div class="customTable" style="padding-right: 37px">
                    <el-button
                      type="danger"
                      :disabled="isEdit"
                      icon="el-icon-delete"
                      @click="deleteUnqualifiedInfo(scope.$index, scope.row)"
                      circle
                    ></el-button>
                  </div>
                </template>
              </el-table-column>
            </el-table>
          </div>
          <div class="noteTable">
            <publicForm
              ref="publicForm1"
              lableWidth="95px"
              :formObj="additionalObj"
              :formData="formData"
              :selected="selected"
              @delteFile="delteFile($event, 0)"
              :timestamp="formData.fFileurl"
              :fileList="fFileurllist"
              @selectChange="selectChange"
            >
            </publicForm>
          </div>
        </div>
      </template>
    </FormLyout>

    <custom-dialog
      @refreshList="refreshList"
      :currentRow="materialRow"
      v-if="materialShow"
      :dialogVisible="materialShow"
      @close1="materialDialog"
      @getMateral="getMateral"
    ></custom-dialog>
  </div>
</template>

<script src="./index.js"></script>
<style lang="less" scoped>
@import "./index.less";
</style>
